package com.example.aerospacemanagementsystem.service.basicService.impl;


import com.example.aerospacemanagementsystem.entity.basic.User;
import com.example.aerospacemanagementsystem.entity.basic.User;
import com.example.aerospacemanagementsystem.mapper.basicMapper.UserMapper;
import com.example.aerospacemanagementsystem.service.basicService.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 铁殷
* @description 针对表【user】的数据库操作Service实现
* @createDate 2023-10-20 14:10:19
*/
@Service
public class UserServiceImpl implements UserService{

    @Autowired
    private UserMapper userMapper;

    @Override
    public int add(User user) {
        return userMapper.insert(user);
    }

    @Override
    public int delete(User user) {
        return userMapper.delete(user);
    }

    @Override
    public int update(User user) {
        return userMapper.update(user);
    }

    @Override
    public List<User> getAllUser(User user) {
        return userMapper.getAllUser(user);
    }
}




